package com.ryskoo.common.dto.product;

import com.ryskoo.common.dto.BasicDTO;

import java.util.List;

/**
 * 商品规格DTO
 * @author thq
 *
 */
public class ProductSpecDTO extends BasicDTO{

	private static final long serialVersionUID = 1L;

	/* 规格名称 */
	private String specName;

	/* 是否启用 false表示否 true表示是 */
	private boolean status;
	
	/* 所属行业 */
	private String industryCate;
	
	/* 所属行业名称 */
	private String industryName;
	
	/*是否被分类关联，0为否，1为是*/
	private String selected = "0";
	
	/*规格明细*/
	private List<String> specValues;
	
	/*规格对应的属性值，显示在列表上*/
	private String specValueNames = "";
	
	/*规格明细*/
	private List<ProductSpecDetailDTO> specDetails;

	
	public List<ProductSpecDetailDTO> getSpecDetails() {
		return specDetails;
	}

	public void setSpecDetails(List<ProductSpecDetailDTO> specDetails) {
		this.specDetails = specDetails;
	}

	public String getSpecName() {
		return specName;
	}

	public void setSpecName(String specName) {
		this.specName = specName;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public List<String> getSpecValues() {
		return specValues;
	}

	public void setSpecValues(List<String> specValues) {
		this.specValues = specValues;
	}

	public String getSelected() {
		return selected;
	}

	public void setSelected(String selected) {
		this.selected = selected;
	}
	
	public String getIndustryCate() {
		return industryCate;
	}

	public void setIndustryCate(String industryCate) {
		this.industryCate = industryCate;
	}

	public String getIndustryName() {
		return industryName;
	}

	public void setIndustryName(String industryName) {
		this.industryName = industryName;
	}

	public String getSpecValueNames() {
		if (this.specValues != null && this.specValues.size() > 0) {
			for (String value : specValues) {
				specValueNames += value+" ";
			}
		}
		return specValueNames;
	}

	public void setSpecValueNames(String specValueNames) {
		this.specValueNames = specValueNames;
	}

	
}
